package dynamicCompilng.Exa01;

public class UseTest {
    public static void main(String[] args) {
        //启动自定义类加载器
        MyClassLoader loader = new MyClassLoader("E:\\");
        Class<?> aClass = null;
        try {
            //填上你的包名以及类名，也就是文件夹后几层
            aClass = loader.loadClass( "TestHello");
            Object obj = aClass.newInstance();
            System.out.println(obj);
        } catch (Exception e1) {
            e1.printStackTrace();
        }
    }
}
